package com.qlzb.taskmanagement.persistentData.entity;

import com.qlzb.taskmanagement.vo.quartzVo.OperationColumnId;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 运维系统的Fsu监控
 */
@Entity(name = "oil_operation_work_order")
public class OperationWorkOrder extends BaseEntity {
    @OperationColumnId(name ="故障单编码")
    @Column(name = "trouble_ticket_no",columnDefinition = "varchar(64) DEFAULT NULL Comment '故障单编码'")
    String troubleTicketNo;
    @OperationColumnId(name ="工单状态")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '工单状态'")
    String workOrderStatus;
    @OperationColumnId(name ="受理时间")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '受理时间'")
    String responseTime;
    @OperationColumnId(name ="派单时间")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '派单时间'")
    String sendOrderTime;
    @OperationColumnId(name ="接单时间")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '接单时间'")
    String recevingTime;
    @OperationColumnId(name ="告警时间")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警时间'")
    String warnTime;

    @OperationColumnId(name ="时限")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '时限'")
    String times;

    @OperationColumnId(name ="告警名称")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警名称'")
    String warnName;

    @OperationColumnId(name ="告警状态")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警状态'")
    String warnStatus;

    @OperationColumnId(name ="告警等级")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警等级'")
    String warnLevel;

    @OperationColumnId(name ="站址运维ID")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址运维ID'")
    String stationOperid;

    String stationCode;
    @OperationColumnId(name ="站址名称")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址名称'")
    String stationName;

    @OperationColumnId(name ="告警清除时间")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警清除时间'")
    String warnCleanTime;
    @OperationColumnId(name ="故障设备类型")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '故障设备类型'")
    String breakdownDeviceType;
    @OperationColumnId(name ="是否催办")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '是否催办'")
    String isUrge;
    @OperationColumnId(name ="直流负载总电流（A）")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '直流负载总电流（A）'")
    String electricity;
    @OperationColumnId(name ="蓄电池基础保障服务备电时长")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '蓄电池基础保障服务备电时长'")
    String batteryTime;
    @OperationColumnId(name ="告警历时（分钟）")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '告警历时（分钟）'")
    String wanrDuration;
    /**
     *  所属区域
     */

    @OperationColumnId(j_id =215,name = "所属区县")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '接单时间'")
    String areaName;

    /**
     *  所属市
     */

    @OperationColumnId(j_id =215,name = "所属地市")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '接单时间'")
    String cityName;

    @OperationColumnId(name = "电池电压")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '电池电压'")
    String batteryVoltage;

    @OperationColumnId(name = "直流负载总电流")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '直流负载总电流'")
    String loadCurrentDef;


    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCityName() {
        if(cityName==null){
            return null;
        }
        return cityName.replace("分公司", "");
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getTroubleTicketNo() {
        return troubleTicketNo;
    }

    public void setTroubleTicketNo(String troubleTicketNo) {
        this.troubleTicketNo = troubleTicketNo;
    }

    public String getWorkOrderStatus() {
        return workOrderStatus;
    }

    public void setWorkOrderStatus(String workOrderStatus) {
        this.workOrderStatus = workOrderStatus;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getSendOrderTime() {
        return sendOrderTime;
    }

    public void setSendOrderTime(String sendOrderTime) {
        this.sendOrderTime = sendOrderTime;
    }

    public String getRecevingTime() {
        return recevingTime;
    }

    public void setRecevingTime(String recevingTime) {
        this.recevingTime = recevingTime;
    }

    public String getWarnTime() {
        return warnTime;
    }

    public void setWarnTime(String warnTime) {
        this.warnTime = warnTime;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getWarnName() {
        return warnName;
    }

    public void setWarnName(String warnName) {
        this.warnName = warnName;
    }

    public String getWarnStatus() {
        return warnStatus;
    }

    public void setWarnStatus(String warnStatus) {
        this.warnStatus = warnStatus;
    }

    public String getWarnLevel() {
        return warnLevel;
    }

    public void setWarnLevel(String warnLevel) {
        this.warnLevel = warnLevel;
    }

    public String getStationOperid() {
        return stationOperid;
    }

    public void setStationOperid(String stationOperid) {
        this.stationOperid = stationOperid;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getWarnCleanTime() {
        return warnCleanTime;
    }

    public void setWarnCleanTime(String warnCleanTime) {
        this.warnCleanTime = warnCleanTime;
    }

    public String getBreakdownDeviceType() {
        return breakdownDeviceType;
    }

    public void setBreakdownDeviceType(String breakdownDeviceType) {
        this.breakdownDeviceType = breakdownDeviceType;
    }

    public String getIsUrge() {
        return isUrge;
    }

    public void setIsUrge(String isUrge) {
        this.isUrge = isUrge;
    }

    public String getElectricity() {
        return electricity;
    }

    public void setElectricity(String electricity) {
        this.electricity = electricity;
    }

    public String getBatteryTime() {
        return batteryTime;
    }

    public void setBatteryTime(String batteryTime) {
        this.batteryTime = batteryTime;
    }

    public String getWanrDuration() {
        return wanrDuration;
    }

    public void setWanrDuration(String wanrDuration) {
        this.wanrDuration = wanrDuration;
    }

    public String getBatteryVoltage() {
        return batteryVoltage;
    }

    public void setBatteryVoltage(String batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }

    public String getLoadCurrentDef() {
        return loadCurrentDef;
    }

    public void setLoadCurrentDef(String loadCurrentDef) {
        this.loadCurrentDef = loadCurrentDef;
    }
}
